package com.bjx.system.domain.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.bjx.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @desc: 用户信息数据实体
 * @author: liushuai
 * @date: 2022-09-28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_user")
@Schema(title = "User",description = "用户信息")
public class UserEntity extends BaseEntity {
    /**
     * 用户ID
     */
    @TableId(type = IdType.AUTO)
    @Schema(title = "userId",description = "用户ID")
    private  Long userId;

    /**
     * 真实名称
     */
    @Schema(title = "realName",description = "真实名称")
    private  String realName;

    /**
     * 用户登录名
     */
    @Schema(title = "username",description = "用户登录名")
    private  String username;

    /**
     * 密码
     */
    @Schema(title = "password",description = "密码")
    private  String password;

    /**
     * 手机号
     */
    @Schema(title = "phone",description = "手机号")
    private  String phone;

    /**
     * 证件号码
     */
    @Schema(title = "numberId",description = "证件号码")
    private  String numberId;

    /**
     * 邮箱
     */
    @Schema(title = "emil",description = "邮箱")
    private  String mail;

    /**
     * 性别(1男/2女/3未知)
     */
    @Schema(title = "gender",description = "性别(1男/2女/3未知)")
    private  Integer gender;

    /**
     * 用户编号
     */
    @Schema(title = "userCode",description = "用户编号")
    private  String userCode;

    /**
     * 年龄
     */
    @Schema(title = "age",description = "年龄")
    private  Integer age;

    /**
     * 头像
     */
    @Schema(title = "avatar",description = "头像")
    private  Integer avatar;

    /**
     * 删除标识(0代表生效/1代表删除)
     */
    @Schema(title = "delFlag",description = "删除标识(0代表生效/1代表删除)")
    private  Integer delFlag;

    /**
     * 是否启用(1是/2否)
     */
    @Schema(title = "enabled",description = "是否启用(1是/2否)")
    private  Integer enabled;

    /**
     * 组织机构ID
     */
    @Schema(title = "orgId",description = "组织机构ID")
    private  Integer orgId;

    /**
     * 公司ID
     */
    @Schema(title = "comId",description = "公司ID")
    private  Integer comId;

    /**
     * 备注
     */
    @Schema(title = "remark",description = "备注")
    private  String remark;

    /**
     * 主页
     */
    @Schema(title = "homePage",description = "主页")
    private  String homePage;

}